#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Xiaobao Zeng<zengxiaobao@skyworth.com>
# Created Time: 2016-11-05 09:44:32
# Last Modified: 2016-11-24 17:48:44
# File Name: washerdetail-room.sh
# Description: 
#host="127.0.0.1:8123"
host="test00.sz.doubimeizhi.com"
appkey="19854c206c2f4a82b33ce98872ab31aa"
salt="eb90e35a31b63415f717482d209f8aa2"
tm=`date +%s`
sessionid="98cc0486cb3d425f9169b58e8d2cd5f3"
roomid="washroom20161111105431kjfsLTK6ub"

sign=`echo -n "appkey${appkey}room_id${roomid}sessionid${sessionid}time${tm}${salt}" | md5sum | awk '{print $1}'`

url="https://${host}/washer/list/byroom?appkey=${appkey}&room_id=${roomid}&time=${tm}&sign=${sign}&sessionid=${sessionid}"
curl -v -k -H "host:qkleague.app.doubimeizhi.com"  "${url}"
